package com.group2.operations.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 用户，主要包含未完成合同签署的代理商和已完成合同签署的代理商
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable{
    private static final long serialVersionUID = 5989963592257011877L;

    private int id;
    //用户名
    @NotBlank(message = "用户名不能为空")
    private String name;
    //密码
    @NotBlank(message = "密码不能为空")
    private String pwd;
    //角色
    private Role role;
    //是否更新信息
    private boolean infoUpdated;
    //真实姓名
    private String real;
    //身份证号
    private String number;
    //电话号码
    private String phone;
    //电子邮箱
    private String email;

}
